import java.util.ArrayList;
import java.util.Collections;



public class EmployeeSorting {
public static void main(String[] args) {
	ArrayList<Employee> emplist=new ArrayList<Employee>();
		emplist.add(new Employee(105,"Hrithik","Mumbai",'M'));
		emplist.add(new Employee(102,"Johny Depp","LA",'M'));
		emplist.add(new Employee(107,"Kajal","Hyderabad",'F'));
		emplist.add(new Employee(104,"Samantha","Chennai",'F'));
		
		System.out.println("Before Sorting"+emplist);
		Collections.sort(emplist);
		System.out.println("After Sorting"+emplist);
		
	
}
}
